import java.util.Scanner;

public class t2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("input 1-99999 number");
        int number = scanner.nextInt();

    
        if (number < 1 || number > 99999) {
            System.out.println("Number is out of range.");
            scanner.close();
            return;
        }

        String numberStr = String.valueOf(number);
        int length = numberStr.length();
        System.out.println(numberStr + " is " + length + " bit");

        String reversedStr = new StringBuilder(numberStr).reverse().toString();
        if (numberStr.equals(reversedStr)) {
            System.out.println(numberStr + " is huiwen number");
        } else {5678
            System.out.println(numberStr + " is not huiwen number");
        }

        scanner.close();
    }
}